<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!-- 如果不满足条件，不渲染元素 -->
        <h3 v-if="age > 18">东软睿道1</h3>
        <!-- css display none 来控制是否显示的 -->
        <h3 v-show="age > 18">东软睿道2</h3>

        <h4 v-if="age >= 18">成年人</h4>
        <h4 v-else>未成年</h4>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <script>
        let vm = new Vue({
            el : '#app',
            data :{
                age : 22
            }
        });
    </script> 
</body>
</html>